import request from './request.js';



//授权
export function login(data) {
  return request({
    url: '/api/memberApi/loginOrRegister',
    method: 'post',
   data
  })
}

//获取用户信息
export function getInfo(data) {
  return request({
    url: '/api/memberApi/getInfo',
    method: 'post',
   data
  })
}



//通知轮播
export function getNotice(dta) {
  return request({
    url: '/api/memberApi/getNotice',
    method: 'post'
 
  })
}

//医嘱列表
export function medicalOrders(data) {
  return request({
    url: '/api/memberApi/medicalOrders',
    method: 'post',
 data
  })
}

//上传医嘱
export function medicalOrderUpload(data) {
  return request({
    url: '/api/memberApi/medicalOrderUpload',
    method: 'post',
	data
 
  })
}

//事件列表
export function eventsList(data) {
  return request({
    url: '/api/memberApi/eventsList',
    method: 'post',
	data
 
  })
}

//关键行动列表
export function keyActions(data) {
  return request({
    url: '/api/memberApi/keyActions',
    method: 'post',
	data
 
  })
}

//医嘱查看
export function medicalOrderDetail(data) {
  return request({
    url: '/api/memberApi/medicalOrderDetail',
    method: 'post',
	data
 
  })
}
//新增事件
export function addEvent(data) {
  return request({
    url: '/api/memberApi/addEvent',
    method: 'post',
	data
 
  })
}

//删除事件
export function deleteEvent(data) {
  return request({
    url: '/api/memberApi/deleteEvent',
    method: 'post',
	data
 
  })
}


//查询字典
export function getDictData(data) {
  return request({
    url: '/api/commonApi/getDictData',
    method: 'post',
	data
 
  })
}

//随访计划
export function changbanServiceInfo(data) {
  return request({
    url: '/api/memberApi/changbanServiceInfo',
    method: 'post',
	data
 
  })
}


//修改个人资料
export function uploadInfo(data) {
  return request({
    url: '/api/memberApi/uploadInfo',
    method: 'post',
	data
 
  })
}

//专病套餐
export function packageList(data) {
  return request({
    url: '/api/memberApi/packageList',
    method: 'post',
	data
 
  })
}

//找专家
export function findExpertList(data) {
  return request({
    url: '/api/memberApi/findExpertList',
    method: 'post',
	data
 
  })
}

//专病下单
export function orderUploadPay(data) {
  return request({
    url: '/api/memberApi/orderUploadPay',
    method: 'post',
	data
 
  })
}



//随访报到
export function followUpReport(data) {
  return request({
    url: '/api/memberApi/followUpReport',
    method: 'post',
	data
 
  })
}



//当日随访
export function getFollowUpPlan(data) {
  return request({
    url: '/api/memberApi/getFollowUpPlan',
    method: 'post',
	data
 
  })
}


//当日随访事项和是否已报到
export function getFollowUpPlanCount(data) {
  return request({
    url: '/api/memberApi/getFollowUpPlanCount',
    method: 'post',
	data
 
  })
}


//获取领衔专家信息
export function getTeamLeader(data) {
  return request({
    url: '/api/memberApi/getTeamLeader',
    method: 'post',
   data
  })
}

//获取我的专家团队
export function teamList(data) {
  return request({
    url: '/api/memberApi/teamList',
    method: 'post',
   data
  })
}

//通过手机号查医生
export function getdoctor(data) {
  return request({
    url: '/api/doctorApi/getInfo',
    method: 'post',
   data
  })
}



export function getConfig (data) {
  return request({
    url: '/api/commonApi/getConfig',
    method: 'post',
   data
  })
}

//订单模块
export function orderManage (data) {
  return request({
    url: '/api/memberApi/orderManage',
    method: 'post',
   data
  })
}

//推荐者
export function buyService (data) {
  return request({
    url: '/api/memberApi/buyService',
    method: 'post',
   data
  })
}


//推荐者
export function getDoctor (data) {
  return request({
    url: '/api/memberApi/getDoctor',
    method: 'post',
   data
  })
}

//用户查看未读消息
export function getUnreadSummaryByDoctor (data) {
  return request({
    url: '/api/memberApi/getUnreadSummaryByDoctor',
    method: 'post',
   data
  })
}



//用户查看这个团队的聊天内容
export function getChatListByTeamId(data) {
  return request({
    url: '/api/memberApi/getChatListByTeamId',
    method: 'post',
   data
  })
}

//用户发送消息
export function sendTeamMessage(data) {
  return request({
    url: '/api/memberApi/sendTeamMessage',
    method: 'post',
   data
  })
}





























































